package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Date;

/**
@create: 2022-09-26 9:02
@author: 怀念天空
@Description: 
*/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "material_order")
public class MaterialOrder {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 物资id
     */
    @TableField(value = "material_id")
    private Integer materialId;

    /**
     * 数量
     */
    @TableField(value = "num")
    private Integer num;

    /**
     * 业务类型
     */
    @TableField(value = "business_type")
    private Integer businessType;

    /**
     * 收货方(公司id)
     */
    @TableField(value = "company_recive")
    private Integer companyRecive;

    /**
     * 价格
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 支付状态
     */
    @TableField(value = "pay_status")
    private Integer payStatus;

    @TableField("order_data")
    private Date orderDate;

    @TableField(exist = false)
    private Material material;

    @TableField(exist = false)
    private Company receiveCompany;
}